<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/WEB-INF/pages/common/taglibs.jsp" %>
<script type="text/javascript" src="${ctx}resources/js/jquery.uploadify-3.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="${ctx}resources/css/uploadify.css" />
<title>上传测试</title>
</head>
<script type="text/javascript">
$(function() {
    $('#attachment').uploadify({
        'swf'      : '${ctx}resources/js/uploadify.swf',
        'uploader' : '${ctx}attachment/upload.htm',
        'auto' : true,
       'multi': false,
       'method':'post',
       'sizeLimit'   : 5000000,
       'removeCompleted' : true,
      'fileDataName' : 'attachment'
    });
});
</script>
<body>
<input id="attachment" name="attachment" type="file">
<form action="${ctx}attachment/upload.htm" method="post" enctype="multipart/form-data">
	<input type="file" name="attachment">
	<input type="submit" name="upoad">
</form>
</body>
</html>